/**
 * 登录接口
 */
import request from "@/utils/request";
import env from "@/utils/env";
import { getItem, setItem } from "@/utils/localStorage";

// 一键登录
export const wxLogin = (data) => {
  return request({
    method: "POST",
    url: "/studio/user/login",
    data,
  });
};
// 测试
export const userInfo = (data) => {
  return request({
    method: "POST",
    url: "/userInfo",
    data,
  });
};

// export const wxLogin = (data) => {
//   return request({
//     method: "POST",
//     url: "/wxLogin",
//     data,
//   });
// };

// 无感刷新token
export const refresh = () => {
  return request({
    url: "/studio/user/refresh-token",
    method: "POST",
  });
};
